package com.gdsdxy.bookshop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;



@ApiModel("书籍信息表")
@TableName(value = "book")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("书籍ID")
    private Integer bookid;
    @ApiModelProperty("书籍名称")
    private String bookname;
    @ApiModelProperty("书籍类型")
    private String category;
    @ApiModelProperty("书籍介绍")
    private String introduce;
    @ApiModelProperty("书籍封面")
    private String image;
    @ApiModelProperty("单价")
    private Double price;
    @ApiModelProperty("作者")
    private String author;
    @ApiModelProperty("数量")
    private Integer count;
}
